package com.financing.wap.dao.impl;


import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.financing.wap.dto.DstUserTagListDTO;
import com.financing.wap.dao.IDstUserTagListDao;
import com.financing.wap.common.SqlName;
/**
 * dst_user_tag_list  
 * 用户标签表 数据访问层实现类
 * @author huqiyun
 *
 */
 
@Repository("dstUserTagListDao")
public class DstUserTagListDaoImpl extends BaseDaoImpl<DstUserTagListDTO, java.lang.Integer> implements IDstUserTagListDao {


	@Override
	public int insert(DstUserTagListDTO dstUserTagList) throws SQLException {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.DstUserTagListSql.insert, dstUserTagList);
	}

	@Override
	public void update(DstUserTagListDTO dstUserTagList) throws SQLException {
		this.sqlMapClientTemplate.update(SqlName.DstUserTagListSql.update, dstUserTagList);
	}

	@Override
	public void updateForce(DstUserTagListDTO dstUserTagList) throws SQLException {
		this.sqlMapClientTemplate.update(SqlName.DstUserTagListSql.updateForce, dstUserTagList);
	}

	@Override
	public void delete(Integer id) throws SQLException {
		this.sqlMapClientTemplate.delete(SqlName.DstUserTagListSql.delete,id);
	}
	
	@SuppressWarnings("unchecked")	
	@Override
	public List<DstUserTagListDTO> queryList(DstUserTagListDTO dstUserTagList) throws SQLException {
		return this.sqlMapClientTemplate.queryForList(SqlName.DstUserTagListSql.queryList, dstUserTagList);
	}

	@Override
	public int queryListCount(DstUserTagListDTO dstUserTagList) throws SQLException {
		return (Integer) this.sqlMapClientTemplate.queryForObject(SqlName.DstUserTagListSql.queryListCount, dstUserTagList);
	}

	@Override
	public DstUserTagListDTO loadById(Integer id) throws SQLException {
		return  (DstUserTagListDTO)this.getSqlMapClientTemplate().queryForObject(SqlName.DstUserTagListSql.loadById,id);
	}

	@Override
	public Class<DstUserTagListDTO> getEntityClass() {
		return DstUserTagListDTO.class;
	}
 	
}
